package com.site.wisdom_construction.service.safetyModule;

import com.site.wisdom_construction.dao.safetyModule.SafetyDocumentDao;
import com.site.wisdom_construction.entity.safetyModule.SafetyDocument;
import com.site.wisdom_construction.statisticsResult.SafetyByTypeName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/11/21
 * @Description
 */
@Service
public class SafetyDocumentService implements SafetyDocumentDao {
    @Autowired
    private SafetyDocumentDao safetyDocumentDao;

    @Override
    public int insert(Map map) {
        return safetyDocumentDao.insert(map);
    }

    @Override
    public int delete(Map map) {
        return safetyDocumentDao.delete(map);
    }

    @Override
    public List<SafetyDocument> findByPage(Map map) {
        return safetyDocumentDao.findByPage(map);
    }

    @Override
    public long total(Map map) {
        return safetyDocumentDao.total(map);
    }

    @Override
    public List<SafetyByTypeName> groupByTotal(Map map) {
        return safetyDocumentDao.groupByTotal(map);
    }
}
